#ifndef AST_DECLARATIONS_STRUCT_DECLARATOR_LIST_H
#define AST_DECLARATIONS_STRUCT_DECLARATOR_LIST_H

#include "../ASTNode.h"

class StructDeclarator;
/*
C99  6.7.2.1
struct-declarator-list:
		struct-declarator
		struct-declarator-list    ,    struct-declarator
*/
class StructDeclaratorList : public ASTNode
{
protected:
	StructDeclaratorList(void)
		: ASTNode(ASTNode::struct_declarator_list){};
public:
	StructDeclaratorList(StructDeclarator *pDecl, StructDeclaratorList *pDeclList = NULL)
		: ASTNode(ASTNode::struct_declarator_list)
		, m_pDecl(pDecl)
		, m_pDeclList(pDeclList) {};

	virtual ~StructDeclaratorList(void);

	virtual void					codeGen();

protected:
	StructDeclarator *					m_pDecl;
	StructDeclaratorList *				m_pDeclList;// may be NULL
};


#endif

